﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

using ProjectPigs.Assets;
using ProjectPigs.Scenes;

namespace ProjectPigs.Core
{
    abstract public class RenderableGameObject : GameObject
    {
        protected Transform transform;
        PPModel model;

        public RenderableGameObject(String ID, PPModel model, Transform transform)
            : base(ID)
        {
            this.transform = transform;
            this.model = model;
        }

        public void draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb)
        {
            //Call renderer
            Debug.pushEntry("draw of RenderableGO called", 3);
            Renderer.drawMesh(model);
        }
 
    }
}
